/** 学习培训 接口 */

import {
  httpRequest
} from './index'

/** 课程管理 */
export const GetCourseList = (params) => httpRequest('verb/course/list', params, 'GET')
export const GetCourseListWithoutPage = (params) => httpRequest('verb/course/listWithoutPage', params, 'GET')
export const AddCourse = (params) => httpRequest('verb/course/create', params)
export const GetCourseDetail = (params) => httpRequest('verb/course/detail/' + params, {}, 'GET')
export const UpdateCourse = (params) => httpRequest('verb/course/update', params)
export const RemoveCourse = (params) => httpRequest('verb/course/update', params)

/** 试题管理 */
export const GetQuestionList = (params) => httpRequest('verb/topic/list', params, 'GET')
export const GetQuestionListWithoutPage = (params) => httpRequest('verb/topic/list', params, 'GET')
export const AddQuestion = (params) => httpRequest('verb/topic/create', params)
export const GetQuestionDetail = (params) => httpRequest('verb/topic/detail/' + params, {}, 'GET')
export const UpdateQuestion = (params) => httpRequest('verb/topic/update', params)
export const RemoveQuestion = (params) => httpRequest('verb/topic/update', params)

/** 试卷管理 */
export const GetPaperList = (params) => httpRequest('verb/paper/list', params, 'GET')
export const GetPaperListWithoutPage = (params) => httpRequest('verb/paper/list', params, 'GET')
export const AddPaper = (params) => httpRequest('verb/paper/create', params)
export const GetPaperDetail = (params) => httpRequest('verb/paper/detail/' + params, {}, 'GET')
export const UpdatePaper = (params) => httpRequest('verb/paper/update', params)
export const RemovePaper = (params) => httpRequest('verb/paper/update', params)

/** 培训管理 */
export const GetCertificateList = (params) => httpRequest('verb/examination/list', params, 'GET')
export const AddCertificate = (params) => httpRequest('verb/examination/create', params)
export const GetCertificateDetail = (params) => httpRequest('verb/examination/detail/' + params, {}, 'GET')
export const GetCertificatePapersDetail = (params) => httpRequest('verb/examination/detail/papers/' + params, {}, 'GET')
export const UpdateCertificate = (params) => httpRequest('verb/examination/update', params)
export const RemoveCertificate = (params) => httpRequest('verb/examination/del', params)

/** 学员答卷 */
export const GetStudentList = (params) => httpRequest('verb/member/list', params, 'GET')
export const GetStudentDetail = (params) => httpRequest('verb/member/detail/' + params, 'GET')
// 用户试卷列表
export const GetStudentExaminationList = (params) => httpRequest('verb/user/examination/list', params, 'GET')
// 用户考试记录结果 userExaminationId
export const GetStudentExaminationDetail = (params) => httpRequest('verb/user/examination/list/detail/' + params, {}, 'GET')
// 用户考试的试卷答题详情 userExaminationId
export const GetStudentExaminationPaperDetail = (params) => httpRequest('verb/user/examination/detail/' + params, {}, 'GET')
// 用户试卷考试记录列表 userExaminationId
export const GetStudentExaminationRecord = (params) => httpRequest('verb/user/examination/list/record/' + params, {}, 'GET')
